package com.qf.mpswaggershiro.ex;

import com.qf.mpswaggershiro.vo.Vo;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class MyexClass {

    @ExceptionHandler(Exception.class)
    public static Vo exInclude(Exception ex){

       return Vo.error(ex.getMessage());
    }
}
